import request from '@/utils/request'

// 添加备注
export function updateOrder(data) {
  return request({
    url: '/sale/update',
    method: 'post',
    data: data
  })
}

// 分页获取订单列表
export function getOrderList(data) {
  return request({
    url: '/sale/list/page',
    method: 'post',
    data: data
  })
}

// 获取订单详情
export function getOrderDetail(id) {
  return request({
    url: '/sale/get?id=' + id,
    method: 'get',
  })
}

// 删除订单
export function delOrder(id) {
  return request({
    url: '/sale/delete?id=' + id,
    method: 'get',
  })
}
// 批量删除订单
export function delOrderList(data) {
  return request({
    url: '/sale/list/delete',
    method: 'post',
    data: data
  })
}